package cn.neo.support.syllabus.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Name:课程时间元素
 * Author: WK（wangkun@xjzhicheng.com)
 * Date: 2016-10-18
 * Describe: PLEASE TO FIXME...
 */
public class ClassTime implements Parcelable {
    private int realm_id;
    private String weeks;
    private String site;
    private String weekTime;
    private String startTime;
    private String endTime;
    private String courseId;
    private String userId;

    public int getRealm_id() {
        return realm_id;
    }

    public void setRealm_id(int realm_id) {
        this.realm_id = realm_id;
    }

    public String getWeeks() {
        return weeks;
    }

    public void setWeeks(String weeks) {
        this.weeks = weeks;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getWeekTime() {
        return weekTime;
    }

    public void setWeekTime(String weekTime) {
        this.weekTime = weekTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.realm_id);
        dest.writeString(this.weeks);
        dest.writeString(this.site);
        dest.writeString(this.weekTime);
        dest.writeString(this.startTime);
        dest.writeString(this.endTime);
        dest.writeString(this.courseId);
        dest.writeString(this.userId);
    }

    public ClassTime() {
    }

    protected ClassTime(Parcel in) {
        this.realm_id = in.readInt();
        this.weeks = in.readString();
        this.site = in.readString();
        this.weekTime = in.readString();
        this.startTime = in.readString();
        this.endTime = in.readString();
        this.courseId = in.readString();
        this.userId = in.readString();
    }

    public static final Creator<ClassTime> CREATOR = new Creator<ClassTime>() {
        @Override
        public ClassTime createFromParcel(Parcel source) {
            return new ClassTime(source);
        }

        @Override
        public ClassTime[] newArray(int size) {
            return new ClassTime[size];
        }
    };
}
